#ifndef _DCE_H
#define _DCE_H
/*
  author Sylvain Bertrand <digital.ragnarok@gmail.com>
  Protected by GNU Affero GPL v3 with some exceptions.
  See README at root of alga tree.
*/
void dce_irqs_ack(struct pci_dev *dev);
void dce_intrs_reset(struct pci_dev *dev);
int dce_intrs_enable(struct pci_dev *dev);

void dce_hpd_on(struct device *dev, u8 hpd);
void dce_hpd_off(struct device *dev, u8 hpd);
int dce_crtc_fb(struct device *dev, unsigned crtc, u64 fb, unsigned w,
				unsigned h, unsigned pitch, unsigned bpp);
void dce_lut(struct device *dev, unsigned crtc);
bool dce_hpd_sense(struct device *dev, u8 hpd);
void dce_hpd_polarity_rearm(struct device *dev, u8 hpd, bool connected);
#endif
